/**
 * 				MochitoConnection.java
 *				------------
 *		
 *   Author:	bin04017@gmail.com
 *	 Created:	22.12.2006
 *	 Project:	Mochito-TransferFramework
 *	 Package:	mochitoConnection
 *	 Usage:		base mochito interface
 * *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 */
package mochitoConnection.interfaces;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.LinkedList;

import mochitoTransferFactory.mochitoHost.MochitoHost;
import mochitoTransferableObject.AbstractMochitoTransferableObject;
import mochitoTransferableObject.MochitoTransferableInfo;
import mochitoTransferableObject.MochitoTransferableObject;

/**
 * @author bin04017
 * 
 */
public interface MochitoConnection extends Remote {
	String getHostAsString() throws RemoteException;

	String getIpAsString() throws RemoteException;

	MochitoHost getHost() throws RemoteException;

	/**
	 * FILA - System
	 * 
	 * @param obj
	 * @throws RemoteException
	 */
	void addMochitoTransferableObject(AbstractMochitoTransferableObject obj)
			throws RemoteException;

	/**
	 * FILA - System
	 * 
	 * @return
	 * @throws RemoteException
	 */
	AbstractMochitoTransferableObject getMochitoTransferableObject()
			throws RemoteException;

	MochitoTransferableObject getMochitoTransferableObject(Long id)
			throws RemoteException;

	MochitoTransferableObject getMochitoTransferableObject(
			MochitoTransferableInfo info) throws RemoteException;

	LinkedList<MochitoTransferableInfo> getMochitoTransferInfo()
			throws RemoteException;

	long getCount() throws RemoteException;
}
